home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 3: The Continuation
/
17-Bit_The_Continuation_Disc.iso
/
amigan
/
amigan 10
/
menus
/
texts.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-27
|
7KB
|
133 lines
/***************************************/
/* Copyrighted by Custom Services 1986 */
/***************************************/
#include <exec/types.h>
#include <intuition/intuition.h>
struct IntuiText IText[] =
{
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "TESTA0"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "testa0"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "ttttttt"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "TTTTTTT"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "uuuuuuu"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "UUUUUUU"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "vvvvvvv"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "VVVVVVV"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "wwwwwww"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "WWWWWWW"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "xxxxxxx"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "XXXXXXX"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "yyyyyyy"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "YYYYYYY"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "zzzzzzz"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "ZZZZZZZ"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "TESTA1"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "ttttttt"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "uuuuuuu"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "vvvvvvv"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "wwwwwww"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "xxxxxxx"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "yyyyyyy"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "zzzzzzz"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "TESTA2"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "ttttttt"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "uuuuuuu"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "vvvvvvv"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "wwwwwww"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "xxxxxxx"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "yyyyyyy"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "zzzzzzz"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "TESTA3"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "ttttttt"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "uuuuuuu"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "vvvvvvv"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "wwwwwww"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "xxxxxxx"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "yyyyyyy"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "zzzzzzz"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "TESTA4"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "TESTA5"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "ttttttt"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "uuuuuuu"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "vvvvvvv"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "wwwwwww"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "xxxxxxx"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "yyyyyyy"},
{ 0, 1, JAM2, CHECKWIDTH, 0, NULL, "zzzzzzz"}
};
#define EXTRA CHECKWIDTH
#define FLAGSA CHECKIT|ITEMTEXT|MENUTOGGLE|ITEMENABLED
struct MenuItem M0I0[] =
{
{&M0I0[ 1], 44, 2, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[ 2],&IText[ 3],NULL,NULL},
{&M0I0[ 2], 44, 12, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[ 4],&IText[ 5],NULL,NULL},
{&M0I0[ 3], 44, 22, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[ 6],&IText[ 7],NULL,NULL},
{&M0I0[ 4], 44, 32, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[ 8],&IText[ 9],NULL,NULL},
{&M0I0[ 5], 44, 42, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[10],&IText[11],NULL,NULL},
{&M0I0[ 6], 44, 52, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[12],&IText[13],NULL,NULL},
{NULL , 44, 62, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[14],&IText[15],NULL,NULL}
};
struct MenuItem M0I1[] =
{
{&M0I1[ 1], 44, 2, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[17],NULL ,NULL,NULL},
{&M0I1[ 2], 44, 12, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[18],NULL ,NULL,NULL},
{&M0I1[ 3], 44, 22, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[19],NULL ,NULL,NULL},
{&M0I1[ 4], 44, 32, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[20],NULL ,NULL,NULL},
{&M0I1[ 5], 44, 42, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[21],NULL ,NULL,NULL},
{&M0I1[ 6], 44, 52, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[22],NULL ,NULL,NULL},
{NULL , 44, 62, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[23],NULL ,NULL,NULL}
};
struct MenuItem M0I2[] =
{
{&M0I2[ 1], 44, 2, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[25],NULL ,NULL,NULL},
{&M0I2[ 2], 44, 12, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[26],NULL ,NULL,NULL},
{&M0I2[ 3], 44, 22, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[27],NULL ,NULL,NULL},
{&M0I2[ 4], 44, 32, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[28],NULL ,NULL,NULL},
{&M0I2[ 5], 44, 42, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[29],NULL ,NULL,NULL},
{&M0I2[ 6], 44, 52, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[30],NULL ,NULL,NULL},
{NULL , 44, 62, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[31],NULL ,NULL,NULL}
};
struct MenuItem M0I3[] =
{
{&M0I3[ 1], 44, 2, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[33],NULL ,NULL,NULL},
{&M0I3[ 2], 44, 12, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[34],NULL ,NULL,NULL},
{&M0I3[ 3], 44, 22, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[35],NULL ,NULL,NULL},
{&M0I3[ 4], 44, 32, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[36],NULL ,NULL,NULL},
{&M0I3[ 5], 44, 42, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[37],NULL ,NULL,NULL},
{&M0I3[ 6], 44, 52, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[38],NULL ,NULL,NULL},
{NULL , 44, 62, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[39],NULL ,NULL,NULL}
};
struct MenuItem M0I5[] =
{
{&M0I5[ 1], 44, 2, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[42],NULL ,NULL,NULL},
{&M0I5[ 2], 44, 12, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[43],NULL ,NULL,NULL},
{&M0I5[ 3], 44, 22, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[44],NULL ,NULL,NULL},
{&M0I5[ 4], 44, 32, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[45],NULL ,NULL,NULL},
{&M0I5[ 5], 44, 42, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[46],NULL ,NULL,NULL},
{&M0I5[ 6], 44, 52, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[47],NULL ,NULL,NULL},
{NULL , 44, 62, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[48],NULL ,NULL,NULL}
};
struct MenuItem M0[] =
{
{&M0[ 1], 0, 0, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[ 0],&IText[ 1],NULL,&M0I0[0]},
{&M0[ 2], 0, 12, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[16],NULL ,NULL,&M0I1[0]},
{&M0[ 3], 0, 24, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[24],NULL ,NULL,&M0I2[0]},
{&M0[ 4], 0, 36, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[32],NULL ,NULL,&M0I3[0]},
{&M0[ 5], 0, 48, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[40],NULL ,NULL,NULL},
{NULL , 0, 60, 64+EXTRA, 10,FLAGSA,0,(APTR)&IText[41],NULL ,NULL,&M0I5[0]}
};
struct Menu TheMenu[] =
{
{ NULL , 0, 0, 64+EXTRA, 10,MENUENABLED," TESTA ",&M0[0]}
};
struct Menu *MyMenu = &TheMenu[0];